package edu.sctu.nieyu.day20150510.constructor.textone;

/**
 * Created by user01 on 2015/5/10.
 */
public class Information {

    private int number;
    private InformationTwo informationTwo;

    public Information(InformationTwo informationTwo){

        this.informationTwo = informationTwo;

    }
    public int getNumber () {

        for (int i = 0; i < informationTwo.number; i++) {

            number += i;

        }
        informationTwo.number = number;
        return number;
    }
    }



